﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Twi.COMMON.Core;
using System.IO;

namespace Twi.Test.COMMON.Core
{
    [TestClass()]
    public class TwiLogHelperTest
    {
        private TestContext testContextInstance;

        /// <summary>
        ///获取或设置测试上下文，上下文提供
        ///有关当前测试运行及其功能的信息。
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        /// <summary>
        ///Error 的测试
        ///</summary>
        [TestMethod()]
        public void Error()
        {
            TwiLogHelper.Error("这是一个错误信息111221211");
        }

        [TestMethod()]
        public void WriteTwiReturnLog()
        {
            TwiReturn twi = new TwiReturn();
            twi.errors = "错误信息";
            TwiLogHelper.WriteTwiReturnLog(twi, TwiLogGrade.Error);

        }
    }
}
